<!DOCTYPE html>
<html>
<head>
@include('/common/header.html',{"title":"控制台"}){}
<link rel="stylesheet" href="${baseStaticUrl}/plugins/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css">
<script type="text/javascript" src="${baseStaticUrl}/plugins/ztree/js/jquery.ztree.core.js"></script>
<script type="text/javascript" src="${baseStaticUrl}/plugins/ztree/js/jquery.ztree.excheck.js"></script>
<script type="text/javascript">
function testCommonTreePopupCbk(data){
    console.info(data);
}
function testCommonPopupCbk1(data){
    console.info(data);
    var list = $.map(data,function(row,i){
        return row.name;
    });
    $("#testCommonPopupBox1").val(list.join(", "));
    $("#testCommonPopupHide1").val(JSON.stringify(data));
}
function testCommonPopupCbk2(data){
    console.info(data);
    var list = $.map(data,function(row,i){
        return row.name;
    });
    $("#testCommonPopupBox2").val(list.join(", "));
    $("#testCommonPopupHide2").val(JSON.stringify(data));
}
function testCommonAttachSave(){
	debugger
    var attach = _var_testCommonAttach_attach;
    var attachData = attach.uploader.extGetData();
    $.ajax({
        url:"${basePath}/sys/test/testCommonAttachSave",
        type:"POST",
        data:{attachJson:JSON.stringify(attachData)},
        dataType:"json",
        success:function(result,status,xhr){
            console.info(result);
            if(result.hasOwnProperty("list")){
                MessageBox.success("保存成功！");
                attach.refresh();
            }
        },
        error:function(xhr,status,err){
            console.warn("ajax response error: {status:'" + status + "',exception:'" + err + "'}");
        }
    });
}
</script>
</head>
<body>
<div class='toolbar row'>
	<div class='col-xs-12 _common_head_bar_css'>
		<span class="headTitle">测试界面</span>
	</div>
</div>
<epoch:tabs id="tabs">
    <epoch:tab url="${basePath}/sys/test/viewCommonIcon" name="通用文字图标" id="test_commonTxtIcon" active="true"></epoch:tab>
    <epoch:tab url="${basePath}/sys/test/viewPublicTab" name="测试公共功能" id="test_commonTab"></epoch:tab>
    <epoch:tab url="${basePath}/sys/test/viewTableTab" name="测试table功能" id="table_commonTab"></epoch:tab>
    <epoch:tab id="test_tableEditTab" url="${basePath}/sys/test/viewTableEditTab" name="测试table编辑功能"></epoch:tab>
    <epoch:tab url="${basePath}/sys/test/viewUeditor" name="测试ueditor编辑器" id="test_viewUeditor"></epoch:tab>
    <epoch:tab url="${basePath}/sys/test/viewUMeditor" name="测试UMeditor编辑器" id="test_viewUMeditor"></epoch:tab>
</epoch:tabs>
</body>
</html>
